function checkAll(obj,checkboxName) {
	var snArray = document.getElementsByName(checkboxName);
	for ( var i = 0; i < snArray.length; i++) {
		snArray[i].checked = obj.checked;
	}
}
	